package com.ruoyi.ruoyiyinzheng.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.common.mybatis.annotation.DataColumn;
import com.ruoyi.common.mybatis.annotation.DataPermission;
import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
import com.ruoyi.ruoyiyinzheng.domain.StMaterialCategery;
import com.ruoyi.ruoyiyinzheng.domain.bo.StMaterialCategeryBo;
import com.ruoyi.ruoyiyinzheng.domain.vo.StMaterialCategeryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 物料类别（树形)Mapper接口
 *
 * @author ruoyi
 * @date 2023-09-18
 */
public interface StMaterialCategeryMapper extends BaseMapperPlus<StMaterialCategeryMapper, StMaterialCategery, StMaterialCategeryVo> {


    /**
     * 查询部门管理数据
     *
     * @param queryWrapper 查询条件
     * @return 部门信息集合
     */
    @DataPermission({
        @DataColumn(key = "name", value = "dept_id")
    })
    List<StMaterialCategeryVo> selectMaterialCategeryMapper(@Param(Constants.WRAPPER) Wrapper<StMaterialCategeryBo> queryWrapper);
}
